import re
import pandas as pd

def rename_demographics_columns(df):
    # 人口学字段保持原名，不做重命名
    return df

def rename_kidney_columns(df):
    return df.rename(columns={col: f'Kidney_{col}' for col in df.columns if col != 'id'})

def rename_liver_columns(df):
    return df.rename(columns={col: f'Liver_{col}' for col in df.columns if col != 'id'})

def rename_gi_columns(df):
    return df.rename(columns={col: f'GI_{col}' for col in df.columns if col != 'id'})

def rename_lung_columns(df):
    return df.rename(columns={col: f'Lung_{col}' for col in df.columns if col != 'id'})

def rename_heart_columns(df):
    return df.rename(columns={col: f'Heart_{col}' for col in df.columns if col != 'id'})

def rename_brain_columns(df):
    return df.rename(columns={col: f'Brain_{col}' for col in df.columns if col != 'id'})

def rename_blood_columns(df):
    return df.rename(columns={col: f'Blood_{col}' for col in df.columns if col != 'id'})

def rename_tissue_composition_columns(df):
    return df.rename(columns={col: f'Tissue_{col}' for col in df.columns if col not in ['id', 'Organ']})

def rename_tissue_flow_rate_columns(df):
    return df.rename(columns={col: f'TissueFlow_{col}' for col in df.columns if col not in ['id', 'Tissue']}) 